package com.appkubes.portal.admin.application.app.push;

import com.appkubes.portal.admin.application.app.push.entity.TransmissionContent;
import com.appkubes.portal.admin.application.app.push.util.PushUtil;

import java.io.IOException;

public class PushTest {


	public static void main(String[] args) throws IOException {


		String title="推送标题";
		String content="推送内容";
		// 透传消息
		TransmissionContent transmissionContent=new TransmissionContent();
		transmissionContent.setType("page");
		transmissionContent.setParam("/pkZuLin/order/detail?key=0728979aa227d6bb23bf8acae4f4becd");
		transmissionContent.setTitle(title);
		transmissionContent.setContent(content);

//		PushUtil.allPush(transmissionContent);
		PushUtil.singlePush("a0d45fccc11f6a72baae817cd7745b1d",transmissionContent);
//		PushUtil.singlePush("033b6e44b57ed96c65dcf2a4de3b8a67",transmissionContent); //a0d45fccc11f6a72baae817cd7745b1d
	}
}
